﻿<phone:PhoneApplicationPage 
    x:Class="DevPhoneToolkitSample.Samples.ExpanderControlSample"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:phone="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone"
    xmlns:shell="clr-namespace:Microsoft.Phone.Shell;assembly=Microsoft.Phone"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    xmlns:DevPhone="clr-namespace:DevPhone.Controls;assembly=DevPhone.Controls.Toolkit"
    FontFamily="{StaticResource PhoneFontFamilyNormal}"
    FontSize="{StaticResource PhoneFontSizeNormal}"
    Foreground="{StaticResource PhoneForegroundBrush}"
    SupportedOrientations="Portrait" Orientation="Portrait"
    mc:Ignorable="d" d:DesignHeight="768" d:DesignWidth="480"
    shell:SystemTray.IsVisible="True" Loaded="PhoneApplicationPageLoaded">

    <!--LayoutRoot is the root grid where all page content is placed-->
    <Grid x:Name="LayoutRoot" Background="Transparent" Margin="0,20">
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="*"/>
        </Grid.RowDefinitions>
        <StackPanel>
            <Border Background="White" VerticalAlignment="Top" BorderBrush="Gray" BorderThickness="1">
                <Image Name="Logo" Source="/DevPhoneToolkitSample;component/Images/DevPhoneToolkit.png" Stretch="None" VerticalAlignment="Top" HorizontalAlignment="Left" />
            </Border>
        </StackPanel>
        <Grid x:Name="ContentPanel" Grid.Row="1" Margin="12,20,12,10">
            <ScrollViewer>
                <StackPanel>
                    <TextBlock Text="Expander Control Sample" FontSize="32"/>
                    <TextBlock Text="Show a Container that can collapsed and expanded." TextWrapping="Wrap" FontSize="18" Margin="0,0,0,10" />
                    <StackPanel Orientation="Vertical">
                        <TextBlock Text="Basic" FontSize="48" Foreground="{StaticResource PhoneAccentBrush}" />
                        <TextBlock Text="Tap over header control" Margin="0,0,0,5" />
                        <DevPhone:ExpanderControl Header="Header sample" Name="ExpanderDefault" IsEnabled="True" IsExpanded="False">
                            <StackPanel>
                                <TextBox />
                                <Button Content="Command"/>
                            </StackPanel>
                        </DevPhone:ExpanderControl>
                    </StackPanel>
                    <StackPanel Orientation="Vertical" Margin="0,10,0,0">
                        <TextBlock Text="Colors and Event" FontSize="48" Foreground="{StaticResource PhoneAccentBrush}" />
                        <StackPanel Orientation="Horizontal">
                            <TextBlock Text="Tap over header control" Margin="0,0,0,5" />
                            <TextBlock Margin="20,20,0,0" Name="Status" />
                        </StackPanel>
                        <DevPhone:ExpanderControl x:Name="expanderControl" Header="Header sample" EllipseBrush="#FF1BE249" EllipseArrow="#FF0A1DFF" HeaderBrush="White" HeaderBackground="#BFB41717" FontSize="28" FontWeight="Bold" FontStyle="Italic" ChangeExpanded="ExpanderControlChangeExpanded" IsExpanded="True">
                        	<DevPhone:ExpanderControl.Projection>
                        		<PlaneProjection/>
                        	</DevPhone:ExpanderControl.Projection>
                            <StackPanel>
                                <TextBlock Text="Text content sample1" />
                                <TextBlock Text="Text content sample2" />
                            </StackPanel>
                        </DevPhone:ExpanderControl>
                    </StackPanel>
                </StackPanel>
            </ScrollViewer>
        </Grid>
    </Grid>
</phone:PhoneApplicationPage>
